from django.template.loader import get_template
from django.http import HttpResponse
from django.template import Template,Context
import datetime

def nowtime_tem (request):
    now = datetime.datetime.now()
    #t = Template("<html><body>It is now {{nowtime}}.</body></html>")
    t = get_template('html.txt')
    html = t.render(Context({'nowtime':now}))
    #html = "<html><body>It is now %s.</body></html>" % now
    return HttpResponse(html)


